package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * User: Sanruy Mu
 * Date: 2021/06/07 11:34
 * Description:
 * Version: V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="User用户信息基础资料的实体类")
public class User implements Serializable {
        @ApiModelProperty(name="id",value="主键")
        private Integer id;
        @ApiModelProperty(name="name",value="用户姓名")
        private String name;
        @ApiModelProperty(name="phone",value="用户手机号")
        private String phone;
        //用户上一次的活动时间
        @ApiModelProperty(name="lastAcTime",value="用户上一次活动时间")
        @JsonFormat(pattern="YYYY-MM-dd HH:mm:ss")
        private Timestamp lastAcTime;
        @ApiModelProperty(name="status" , value="用户状态")
        private Boolean status;
        @ApiModelProperty(name="listStations" , value="用户站点信息")
        private List<Station> listStations;
        @ApiModelProperty(name="countNo" , value="统计用户订单数量")
        private Integer countNo;

}